package com.qinghuan.hutubiji.gui.panel;

import com.qinghuan.hutubiji.util.ChartUtil;
import com.qinghuan.hutubiji.util.GUIUtil;

import javax.swing.*;
import java.awt.*;

public class ReportPanel extends JPanel {

    static {
        GUIUtil.useLNF();
    }

    private ReportPanel() {
        this.setLayout(new BorderLayout());
        Image image = ChartUtil.getImage(400, 300);
        ImageIcon icon = new ImageIcon(image);
        label.setIcon(icon);
        this.add(label);
    }

    public static ReportPanel instance = new ReportPanel();

    public JLabel label = new JLabel();

    public static void main(String[] args) {
        GUIUtil.showPanel(ReportPanel.instance);
    }

}
